import * as Relay from "react-relay";

export default class UpdateCompanyMutation extends Relay.Mutation {
  static fragments = {};

  getConfigs() {
    return [{
      type: 'FIELDS_CHANGE',
      fieldIDs: { company: this.props.payload.id },
    }];
  };

  getMutation = () => Relay.QL`mutation { updateCompany }`;

  getVariables() {
    return { ...this.props.payload };
  };

  getFatQuery = () => (
    Relay.QL`
      fragment on updateCompanyPayload {
        company
      }
    `
  );
}
